package com.maple.soa.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lijian
 * @date 2020/7/12
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("index")
    public String index(Model model) {
        model.addAttribute("msg", "Hello Spring MVC!");
        return "hello";
    }

}
